1 using UnityEngine;
2 using
System.Collections;
3
4 public
class InterpolationSwingOut : InterpolationProcess
5 {
6     
private float scale;
7
8     
public InterpolationSwingOut(float scale)
9     {
10         
this.scale = scale;
11     }
12
13     
public override float apply(float a)
14     {
15         a--;
16         
return a * a * ((scale + 1) * a + scale) + 1;
17     }
18 }



Trò chơi đua xe động vật trong UNITY Engine 114.955 lượt xem

Gõ tìm kiếm nhanh...